Fixed bug on patients appointments